Platform Explorer / Nuxeo Platform 11.3

Extension point directories

Documentation

This extension point can be used to register new MongoDB-based directories. The extension can contain any number of directories declarations of the form:

    <directory name="userDirectory">
        <schema>vocabulary</schema>
        <types>
            <type>system</type>
        </types>
        <idField>username</idField>
        <passwordField>password</passwordField>
        <passwordHashAlgorithm>SSHA</passwordHashAlgorithm>
        <autoincrementIdField>false</autoincrementIdField>
        <createTablePolicy>on_missing_columns</createTablePolicy>
        <dataFile>setup.csv</dataFile>
        <dataFileCharacterSeparator>,</dataFileCharacterSeparator>
        <references>
            <reference collection="user2group" dataFile="user2group.csv"
                directory="groupDirectory" field="groups"
                sourceField="userId" targetField="groupId"/>
        </references>
        <permissions>
            <permission name="Read">
                <group>mygroup</group>
                <group>mygroup2</group>
                <user>Administrator</user>
            </permission>
            <permission name="Write">
                <group>mygroup3</group>
            </permission>
        </permissions>
    </directory>

If you want to customize the MongoDB connection used in the directory, you can contribute a new connection configuration to MongoDBComponent with id 'directory/[directory@name]'. In the example above the id will be 'directory/userDirectory'

Contribution Descriptors

  • Class: org.nuxeo.directory.mongodb.MongoDBDirectoryDescriptor

Contributions

No known contributions.